package com.example.module.iot.emq.config;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

@Data
@Validated // @Valid 不行
@ConfigurationProperties(prefix = "mqtt.eclipse-paho")
public class EclipsePahoMqttProperties {

    @NotEmpty
    private String serverURI;
    @NotEmpty
    private String clientId;
    @NotEmpty
    private String userName;
    @NotEmpty
    private String password;
    @NotEmpty
    private String subscribeTopic;

}
